#!/usr/bin/env python
import sys

try:
	filename = sys.argv[1]
	if len(sys.argv) > 2:
		code = sys.argv[2]
	else:
		code = "freopen"
except:
	print "comment {file name} [code]"
	sys.exit(0)

f = open(filename, "r")
content = f.read()
f.close()
content = content.replace(code, "//" + code)

f = open(filename, "w")
f.write(content)
f.close()

